import login from '@/components/login'
import frame from '@/components/frame'
import Dashboard from "@/components/index"
import selDepartment from "@/components/selDepartment"
import createOrder from '@/components/order/createOrder/index'
import allOrder from "@/components/order/index"
import storeManagement from "@/components/store/index"
import product from "@/components/product/index"
import mallGoods from "@/components/mall/mallGoods"
import jobs from "@/components/jobs/jobList"
import storeSale from "@/components/store/sale"
import courseManagement from "@/components/course/index"
import qrCodeSign from "@/components/course/qrCodeSign"
import stock from "@/components/stock"
import fileManager from "@/components/fileManager/index"
import activity from "@/components/activity/index"
import activityVisual from "@/components/activity/actvitityVisualEditor"
import actShare from "@/components/activity/actShare/index"
import MenuManagement from "@/components/weixin"
import MenuEdit from "@/components/weixin/MenuEdit"
import repertory from "@/components/outpatient/schedule"
import computeManagement from "@/components/compute"
import qa from "@/components/qa/index"
import qaEdit from "@/components/qa/edit"
import examine from "@/components/examine/index"
import defineItem from "@/components/examine/defineItem/itemOfExamineDefine"
import pcAddress from "@/components/pcAddress/index"
import reportTemplate from "@/components/reportTemplate/index"
import detection from "@/components/detection/detectionManagement/index"
import tactics from "@/components/detection/tacticsManagement/index"
import detectionBusiness from "@/components/detection/detectionManagement/business/index"

// import editReportTemplate from "@/components/reportTemplate/editReportTemplate"
import editReportTemplate from "@/components/reportTemplate/templatePages/index"
import widgets from "@/components/resourceManagement/widgets/index"
import instanceManage from "@/components/qa/instance/instanceManage"
import eCardManagement from "@/components/eCard/index"
import taskManagement from "@/components/taskManagement/index"
import labelManagement from "@/components/labelManagement/index"
import classManagement from "@/components/courseManagement/class/index"

// import qrCode from "@/components/qrCode"
const menuList =  [
  {
    name:"登陆",
    href:"/login",
    hidden:true,
    component: login
  },
  {
    name:"pc地址",
    href:"/pcAddress",
    hidden:true,
    component: pcAddress
  },
  {
    name:"选部门",
    href:"/selDepartment",
    hidden:true,
    component: selDepartment
  },
  {
    name:"首页",
    href:"/index",
    icon:"regular/bookmark",
    parentComponent: frame,
    component: Dashboard
  },
  {
    name:"门诊管理",
    href:"/outpatient",
    icon:"hospital-alt",
    component: frame,
    children:[
      {
        name:"排班管理",
        href:"/outpatient/repertory-management",
        icon:"calendar-alt",
        component:repertory
      }
    ]
  },
  {
    name:"任务及标签",
    href:"/management",
    icon:"regular/folder",
    component: frame,
    children:[
      {
        name:"任务管理",
        href:"/task&label/taskManagement",
        icon:"regular/folder-open",
        component: taskManagement
      },
      {
        name:"标签管理",
        href:"/task&label/labelManagement",
        icon:"regular/folder-open",
        component: labelManagement
      },
    ]
  },
  {
    name:"检测管理",
    href:"/detection-manager",
    icon:"regular/folder",
    component: frame,
    children:[
      {
        name:"检测管理",
        href:"/detection-manager/detection",
        icon:"regular/folder-open",
        component: detection
      },
      {
        name:"检测业务",
        href:"/detection-manager/detectionBusiness",
        icon:"regular/folder-open",
        component: detectionBusiness
      },
      {
        name:"策略管理",
        href:"/detection-manager/tactics",
        icon:"regular/folder-open",
        component: tactics
      }
    ]
  },
  {
    name:"问卷管理",
    href:"/QA-manager",
    icon:"regular/folder",
    component: frame,
    children:[
      {
        name:"所有问卷",
        href:"/QA-manager/all",
        icon:"regular/folder-open",
        component: qa
      },
      {
        name:"问卷实例",
        href:"/QA-manager/instanceManage",
        icon:"regular/folder-open",
        component: instanceManage
      },
      {
        name:'编辑问卷',
        href:'/qa/edit/:id',
        icon:'regular/question-circle',
        hidden:true,
        component : qaEdit
      },
    ]
  },
  {
    name:"统计管理",
    href:"/computeManagement",
    icon:"brands/whatsapp",
    component: frame,
    children:[
      {
        name:'统计管理',
        href:'/computeManagement/index',
        icon:'brands/whatsapp',
        component : computeManagement
      }
    ]
  },
  {
    name:"订单管理",
    href:"/orderManagement",
    icon:"regular/bookmark",
    component: frame,
    children:[
      {
        name:"所有订单",
        href:"/orderManagement/allOrder",
        icon:"cog",
        component:allOrder
      },
      {
        name:"创建订单",
        href:"/orderManagement/create",
        icon:"cog",
        component:createOrder
      },
    ]
  },
  {
    name:"仓储管理",
    href:"/stock&product",
    icon:"regular/bookmark",
    component: frame,
    children:[
      {
        name:"库存管理",
        href:"/stockManagement",
        icon:"cog",
        component:stock
      },
      {
        name:"产品管理",
        href:"/productManagement",
        icon:"cog",
        component:product
      },
    ]
  },
  {
    name:"商铺管理",
    href:"/store-management",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"商铺管理",
        href:"/mall/store-management",
        icon:"cog",
        component:storeManagement
      },
      {
        name:"商铺活动",
        href:"/mall/sale-management",
        icon:"cog",
        component:storeSale
      }
    ]
  },
  {
    name:"商品管理",
    href:"/goods-management",
    icon:"cogs",
    parentComponent: frame,
    component: mallGoods,
  },
  {
    name:"活动管理",
    href:"/activity",
    icon:"regular/calendar",
    component: frame,
    children:[
      {
        name:"活动",
        href:"/activity/activity-Management",
        icon:"regular/calendar",
        component:activity
      },
      {
        name:"活动编辑器",
        href:"/activity/visual/:id",
        icon:"regular/calendar",
        hidden:true,
        component:activityVisual
      },
      {
        name:"活动分享",
        href:"/activity/activity-share",
        icon:"regular/calendar",
        component:actShare
      }
    ]
  },
  {
    name:"业务管理",
    href:"/businessManagement",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"课程管理",
        href:"/businessManagement/course",
        icon:"regular/calendar",
        component:courseManagement
      },
      {
        name:"服务卡管理",
        href:"/businessManagement/eCard",
        icon:"regular/calendar",
        component:eCardManagement
      },
      {
        name:"class编辑",
        href:"/businessManagement/class/:id",
        icon:'regular/question-circle',
        hidden:true,
        component : classManagement
      },
    ]
  },
  {
    name:"体检管理",
    href:"/examine-management",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"体检管理",
        href:"/examine/examine-define",
        icon:"regular/calendar",
        component:examine
      },
      {
        name:'体检定义项',
        href:'/examine-define/item/:id',
        icon:'regular/question-circle',
        hidden:true,
        component : defineItem
      },
    ]
  },
  {
    name:"报告管理",
    href:"/report-management",
    icon:"hospital-alt",
    component: frame,
    children:[
      {
        name:"报告模板",
        href:"/report-management/reportTemplate",
        icon:"calendar-alt",
        component:reportTemplate
      },
      {
        name:'报告模板编辑',
        href:'/report-management/edit/:id',
        icon:'regular/question-circle',
        hidden:true,
        component : editReportTemplate
      },
      {
        name:"挂件资源",
        href:"/report-management/widget",
        icon:"calendar-alt",
        component:widgets
      },
    ]
  },
  {
    name:"微信管理",
    href:"/wechat",
    icon:"brands/weixin",
    component: frame,
    children: [
      {
        name:'目录编辑',
        href:'/wechat/menu',
        icon:'brands/weixin',
        component : MenuManagement
      },
      {
        name:'菜单编辑',
        href:'/wechat/menu-edit/:id',
        icon:'brands/weixin',
        hidden:true,
        component : MenuEdit
      }
    ]
  },
  {
    name:"任务管理",
    href:"/jobs",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"任务列表",
        href:"/jobs/jobList-management",
        icon:"cog",
        component:jobs
      }
    ]
  },
  {
    name:"文件管理",
    href:"/file-manager",
    icon:"regular/folder",
    component: frame,
    children:[
      {
        name:"文件浏览器",
        href:"/file-manager/explorer",
        icon:"regular/folder-open",
        component: fileManager
      }
    ]
  },
  // {
  //   name:"二维码管理",
  //   href:"/qrCode-management",
  //   icon:"regular/bookmark",
  //   parentComponent: frame,
  //   component: qrCode
  // },
    {
        name:"二维码展示",
        href:"/qrCodeSign",
        hidden:true,
        component: qrCodeSign
    }
]
export default menuList
//
